import requests
from Commen import project_path


def http_requests(file_path, url):
    data = {"type": "600010"}
    files = {"logFile": open(file_path, "rb")}
    r = requests.post(url, data, files=files)
    return r


if __name__ == '__main__':
    # res = http_requests(project_path.logs, "http://dl.izhaohu.com:10090/log/IbedTest")
    # print(res.status_code)
    pass
